<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Insert title here</title>
    <link rel="stylesheet" type="text/css" href="css/page.css">
</head>
<body>
<%@include file="head.jsp" %>
<div class="bg1">
    <ul>
        <li><a href="${pageContext.request.contextPath}/findStudentAll"><input type="button" value="查询所有学生信息" class="button1"/></a></li><br/>
        <li><a href="${pageContext.request.contextPath}/sm1JSP"><input type="button" value="按学号查询" class="button1"/></a></li><br/>
        <li><a href="${pageContext.request.contextPath}/sm2JSP"><input type="button" value="按学生姓名查询" class="button1"/></a></li><br/>
        <li><a href="${pageContext.request.contextPath}/smAddJSP"><input type="button" value="办理入住" class="button1"/></a></li><br/>
    </ul>
</div>
<div class="bg2">
    <form method="post" action="${pageContext.request.contextPath}/editStudent">
        <table>
            <tr><td align="right" width="30%">学生学号：</td><td><input type="text" name="id" value="${student.getId()}" class="text"/></td></tr>
            <tr><td align="right" width="30%">学生姓名：</td><td><input type="text" name="name" value="${student.getName()}" class="text"/></td></tr>
            <tr><td align="right" width="30%">年级：</td><td><input type="text" name="grade" value="${student.getGrade()}" class="text"/></td></tr>
            <tr><td align="right" width="30%">所在系：</td><td><input type="text" name="department" value="${student.getDepartment()}" class="text"/></td></tr>
            <tr><td align="right" width="30%">班级：</td><td><input type="text" name="cla" value="${student.getCla()}" class="text"/></td><tr>
            <tr><td align="right" width="30%">宿舍信息：</td><td><input type="text" name="building" value="${student.getBuilding()}" class="text1"/>号楼
                <input type="text" name="floor" value="${student.getFloor()}" class="text1"/>层
                <input type="text" name="dorm" value="${student.getDorm()}" class="text1"/>号
                <input type="text" name="bed" value="${student.getBed()}" class="text1"/>号床</td><tr>
            <tr><td align="right" width="30%"><input type="submit" value="确认修改" class="button"/></td>
                <td><input type="reset" value="重置" class="button"/></td></tr>
        </table></form>
</div>
</body>
</html>